package edu.hcmus.sow.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import edu.hcmus.sow.domain.Folder;

/**
 * DAO to manage Folder entities.
 * 
 */
public interface FolderDAO extends GenericDAO<Folder, Integer> {

   public List<Folder> getByClientID(Integer clientID) throws DataAccessException;

   public List<Folder> getByParentID(Integer parentID) throws DataAccessException;

   public boolean isExist(Integer clientID, Integer parentID, String name) throws DataAccessException;

   public List<Folder> getRepositories(Integer clientID) throws DataAccessException;

   public List<Folder> findFolderByName(Integer clientID, String name) throws DataAccessException;
}